package com.zzt.blog.pojo.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzt.blog.common.util.DateUtils;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-04-03
 * Time: 16:15
 */
@Data
public class BlogInfoResponse {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
//    private Date time;

//    public String getContent() {
//        return content == null ? "" : content.substring(0,50);
//    }


//    public String getCreateTime() {
//        return DateUtils.dateFormat(createTime);
//    }
}
